id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Misc LambdasStringLambda1

fun List<String>.combine(): String = mapIndexed { i, s -> i.toString() + s }.joinToString(", ") fun main() { println(listOf("a").combine()) println(listOf("a", "b", "c", "d").combine()) }

Click on to run the code

⬅ Back